const controller = require("../controllers/dish.server.controller");
const express = require("express");
const router = express.Router();
const multiparty = require('connect-multiparty');
const multipartyMiddleware = multiparty();

router
    //.get("/loadDish", controller.loadDishByMerchant)
    .post("/addDish", multipartyMiddleware, controller.addDish)
    .get("/loadActiveDish", controller.loadActiveDish)
    .delete("/deleteDish/:id", controller.deleteDish)
    .get("/recommendDish/:id", controller.recommendDish)


module.exports = router;